﻿<%@ Page Title="" Language="C#" MasterPageFile="~/IndexMaster.Master" AutoEventWireup="true"
    CodeBehind="EditorTeacherInfoSearch.aspx.cs" Inherits="UI.TeacherInfoSearch"
    MaintainScrollPositionOnPostback="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        #progress
        {
            font-family: Arial;
            position: absolute;
            background-color: ThreeDFace;
            border: 2px solid red;
            padding: 5px;
            margin-left: 300px;
            margin-top: -30px;
            width: 100px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script src="Scripts/myRightKeyShield.js" type="text/javascript"></script>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:Button ID="btnInto" runat="server" Text="进入查询" OnClick="btnInto_Click" />
    <asp:Panel ID="Panel6" runat="server" Style="width: 100%; height: auto; border: 1px solid gray"
        Visible="false">
        <h1 style="text-align: center">
            请选择查询条件（可多选):
        </h1>
        <asp:UpdatePanel ID="UpdatePane1" runat="server">
            <ContentTemplate>
                &nbsp; &nbsp;<asp:CheckBox ID="chkTeacherName" runat="server" AutoPostBack="True"
                    OnCheckedChanged="chkTeacherName_CheckedChanged" Text="教师姓名" />
                &nbsp; &nbsp;<asp:CheckBox ID="chkSchoolName" runat="server" AutoPostBack="True"
                    OnCheckedChanged="chkSchoolName_CheckedChanged" Text="学校名称" />
                &nbsp;&nbsp;<asp:CheckBox ID="chkTitle" runat="server" AutoPostBack="True" OnCheckedChanged="chkTitle_CheckedChanged"
                    Text="职称" />
                &nbsp; &nbsp;<asp:CheckBox ID="chkDegree" runat="server" AutoPostBack="True" OnCheckedChanged="chkDegree_CheckedChanged"
                    Text="学位" />
                &nbsp; &nbsp;<asp:CheckBox ID="chkMajor" runat="server" AutoPostBack="True" OnCheckedChanged="chkMajor_CheckedChanged"
                    Text="研究领域" />
                &nbsp; &nbsp;
                <br />
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
                <asp:Panel ID="Panel1" runat="server" Visible="false">
                    <span>请输入教师姓名:</span>
                    <asp:TextBox ID="txtTeacherName" runat="server" Width="200px"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="只允许输入汉字!"
                        ControlToValidate="txtTeacherName" Display="Dynamic" ValidationExpression="[\u4e00-\u9fa5]{1,}$">
                    </asp:RegularExpressionValidator>
                </asp:Panel>
                <asp:Panel ID="Panel2" runat="server" Visible="false">
                    <span>请选择学校名称:</span>
                    <asp:DropDownList ID="ddlProvince" runat="server" AutoPostBack="True" ToolTip="请选择省份"
                        OnSelectedIndexChanged="ddlProvince_SelectedIndexChanged">
                        <asp:ListItem Text="请选择省份" Value="0" />
                    </asp:DropDownList>
                    &nbsp; &nbsp; &nbsp;
                    <asp:DropDownList ID="ddlSchoolName" runat="server" AutoPostBack="True" ToolTip="请选择学校名称 "
                        Enabled="false" OnSelectedIndexChanged="ddlSchoolName_SelectedIndexChanged">
                        <asp:ListItem Text="四川大学" Value="10610" />
                    </asp:DropDownList>
                </asp:Panel>
                <asp:Panel ID="Panel3" runat="server" Visible="false">
                    <span>请选择教师职称:</span>
                    <select id="selectTitle" runat="server">
                        <option value="职称">请选择教师职称</option>
                    </select>
                </asp:Panel>
                <asp:Panel ID="Panel4" runat="server" Visible="false">
                    <span>请选择教师学位:</span>
                    <select id="selectDegree" runat="server">
                        <option selected="selected">请选择学位</option>
                    </select>
                </asp:Panel>
                <asp:Panel ID="Panel5" runat="server" Visible="false">
                    <span>请选择研究领域:</span>
                    <select id="selectMajor" runat="server">
                        <option value="研究领域">请选择研究领域</option>
                    </select>
                </asp:Panel>
            </ContentTemplate>
        </asp:UpdatePanel>
        <br />
        <br />
        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="upgvTeacherInfoSearch">
            <ProgressTemplate>
                <span id="progress">
                    <asp:Image ID="Image1" ImageUrl="~/Source/images/query_ajax_load4.gif" runat="server" />
                    <br />
                    正在执行。。。</span>
            </ProgressTemplate>
        </asp:UpdateProgress>
        <asp:UpdatePanel ID="upgvTeacherInfoSearch" runat="server">
            <ContentTemplate>
                &nbsp;&nbsp;
                <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查询" Width="60px"
                    Height="30px" />
                &nbsp;&nbsp;
                <asp:Button ID="btnCancel" runat="server" Text="取消" OnClick="btnCancel_Click" Width="60px"
                    Height="30px" />
                &nbsp;&nbsp;
                <asp:Button ID="btnSelectAll" runat="server" Text="全选" OnClick="btnSelectAll_Click"
                    Width="60px" Height="30px" />
                <br />
                <br />
                <br />
                <asp:GridView ID="gvTeacherInfoSearch" runat="server" BackColor="White" BorderColor="#3366CC"
                    EmptyDataText="没有找到数据。。。" EmptyDataRowStyle-ForeColor="OrangeRed" EmptyDataRowStyle-HorizontalAlign="Center"
                    EmptyDataRowStyle-Font-Size="20px" BorderStyle="None" BorderWidth="1px" CellPadding="4"
                    Height="120px" Width="750px" EnableViewState="false" ViewStateMode="Disabled"
                    AutoGenerateColumns="False" Style="height: auto" OnRowDataBound="gvTeacherInfoSearch_RowDataBound">
                    <Columns>
                        <asp:TemplateField HeaderText="序号">
                            <HeaderStyle HorizontalAlign="Center" Width="5%" />
                            <ItemStyle HorizontalAlign="Center" Width="5%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="全选">
                            <HeaderStyle HorizontalAlign="Center" Width="8%" />
                            <ItemStyle HorizontalAlign="Center" Width="8%" />
                            <ItemTemplate>
                                <input type="checkbox" name="chkItem" value="" id="chkItem" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="姓名" DataField="teacherName">
                            <HeaderStyle HorizontalAlign="Center" Width="8%" />
                            <ItemStyle HorizontalAlign="Center" Width="8%" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="学校" DataField="schoolName">
                            <HeaderStyle HorizontalAlign="Center" Width="16%" />
                            <ItemStyle HorizontalAlign="Center" Width="16%" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="职称" DataField="title">
                            <HeaderStyle HorizontalAlign="Center" Width="13%" />
                            <ItemStyle HorizontalAlign="Center" Width="13%" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="学位" DataField="degree">
                            <HeaderStyle HorizontalAlign="Center" Width="15%" />
                            <ItemStyle HorizontalAlign="Center" Width="15%" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="研究领域" DataField="major">
                            <HeaderStyle HorizontalAlign="Center" Width="15%" />
                            <ItemStyle HorizontalAlign="Center" Width="15%" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="代表论文" DataField="代表论文">
                            <HeaderStyle HorizontalAlign="Center" Width="18%" />
                            <ItemStyle HorizontalAlign="Center" Width="18%" />
                        </asp:BoundField>
                    </Columns>
                    <HeaderStyle BackColor="OrangeRed" Font-Bold="True" />
                    <PagerSettings FirstPageText="首页" LastPageText="末页" Mode="NextPreviousFirstLast"
                        NextPageText="下一页" PreviousPageText="上一页" />
                    <PagerStyle BackColor="OrangeRed" ForeColor="#003399" HorizontalAlign="Center" />
                    <AlternatingRowStyle BackColor="NavajoWhite" />
                    <RowStyle BackColor="Orange" />
                </asp:GridView>
                <p>
                    &nbsp;<webdiyer:AspNetPager ID="AspNetPager1" runat="server" CustomInfoHTML="总记录数:%RecordCount%, 总页数:%PageCount%, 当前为第  %CurrentPageIndex% 页"
                        FirstPageText="首页" LastPageText="末页" LayoutType="Div" NextPageText="下一页" NumericButtonCount="10"
                        PageIndexBoxType="DropDownList" PageSize="15" PrevPageText="上一页" ShowNavigationToolTip="true"
                        PagingButtonSpacing="6px" ShowCustomInfoSection="Right" OnPageChanged="AspNetPager1_PageChanged"
                        Font-Size="12px" HorizontalAlign="Center" Width="100%" AlwaysShow="true" CustomInfoSectionWidth="40%">
                    </webdiyer:AspNetPager>
                </p>
            </ContentTemplate>
        </asp:UpdatePanel>
    </asp:Panel>
</asp:Content>
<asp:Content ID="Content3" runat="server" ContentPlaceHolderID="ContentPlaceHolder7">
    <a href="EditorTeacherInfoSearch.aspx" style="background-color: #465c71">教师信息查询</a>
</asp:Content>
